import Vue from 'vue'
import find from '@/views/find'//@是绝对路径，从src文件夹出发
import friend from '../views/friend'
import VueRouter from 'vue-router'
Vue.use(VueRouter)//VueRouter插件初始化

const router = new VueRouter({
    mode:history,
    routes: [
        { path: '/find', component: find },
        // 动态路由传参配置参数，下面的word
        { path: '/friend/:words', component: friend }
    ]
})//初始化路由实例

export default router